<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>韩城市综合行政执法局业务审批管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="__ADMIN__/bower_components/bootstrap/dist/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="__ADMIN__/bower_components/font-awesome/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="__ADMIN__/bower_components/Ionicons/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="__ADMIN__/dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="__ADMIN__/dist/css/skins/_all-skins.min.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="__ADMIN__/bower_components/morris.js/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="__ADMIN__/bower_components/jvectormap/jquery-jvectormap.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="__ADMIN__/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
    <!-- Daterange picker -->
    <link rel="stylesheet" href="__ADMIN__/bower_components/bootstrap-daterangepicker/daterangepicker.css">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="__ADMIN__/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- jQuery 3 -->
    <script src="__ADMIN__/bower_components/jquery/dist/jquery.min.js"></script>
    <!-- 引入uploadify上传组件 -->

    <script src="__PLUS__/uploadify/jquery.uploadify.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#uploadify").uploadify({
                //指定swf文件
                'swf': "__PLUS__/uploadify/uploadify.swf",
                //后台处理的页面
                'uploader': "{:url('business/upimg')}",
                'progressData' : 'speed',
                //按钮显示的文字
                'buttonText': '上传勘验单',
                //按钮样式
                'buttonClass': 'btn btn-primary btn-lg text-center',
                //显示的高度和宽度，默认 height 30；width 120
                //'height': 50,
                //'width': 150,
                //上传文件的类型  默认为所有文件    'All Files'  ;  '*.*'
                //在浏览窗口底部的文件类型下拉菜单中显示的文本
                'fileTypeDesc': 'Image Files',
                //设定发送数据的name值
                'fileObjName':'thumb',
                //允许上传的文件后缀
                'onUploadSuccess' : function(file,data,response){

                    $("input[name='thumb']").val(data);
                    var kanyanimgsrc="/uploads/"+data;
                    var kanyanimg="<img height='80%' src='"+kanyanimgsrc+"'>";
                    $("#kanyan_img").show();
                    $("#kanyan_img").html(kanyanimg);

                }
            });
            $("#uploadify-button").prepend("<i style='padding-right:4px;' class='fa fa-upload'></i>");
            $("#uploadify-button").removeAttr('style');
        });



    </script>


    <!-- 自定义样式 -->
    <link rel="stylesheet" href="__ADMIN__/css/style.css">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <!-- 头部 -->
    {include file="common/header"}
    <!-- //头部 -->

    <!-- 左侧导航 -->
    {include file="common/left"}
    <!-- /左侧导航 -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" style="overflow: hidden;">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>


            </h1>

        </section>

        <!-- Main content -->
        <section class="content">
            <div class="box box-default">
                <div class="box-header with-border">
                    <h3 class="box-title">上传勘验单</h3>

                    <div class="box-tools pull-right">
                        <ol class="breadcrumb">
                            <li><a href="#"><i class="fa fa-dashboard"></i> 系统</a></li>
                            <li class="active">业务管理</li>
                        </ol>
                    </div>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <div class="col-md-12">
                        <form class="form-horizontal" action="" method="post" enctype="multipart/form-data" >
                            <input type="hidden" name="id" value="{$business.bus_id}">
                            <table  class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
                                <tbody>
                                <tr role="row" class="even">
                                    <td style="width: 50%;"><label class="show_label">业务编号:</label><span  class="" id="no"  >{$business.bus_no}</span></td>
                                    <td style="width: 50%;"><label class="show_label">申请单位:</label><span  class="" id="name"  >{$business.bus_name}</span></td>
                                </tr>
                                <tr role="row" class="even">
                                    <td style="width: 50%;"><label class="show_label">业务类型:</label><span  class="" id="cate_id"  >{$business.cate_name}</span></td>
                                    <td style="width: 50%;"><label class="show_label">联系电话:</label><span  class="" id="tel"  >{$business.bus_tel}</span></td>
                                </tr>
                                </tbody>
                            </table>
                            <div class="box-body">

                                <div class="form-group">

                                    <div class="col-sm-3">

                                    </div>
                                    <div class="col-sm-6">
                                        <span id="uploadify" ></span>
                                        <input id="thumb" name="thumb" value="" type="hidden">
                                    </div>
                                    <div class="col-sm-3">

                                    </div>                         </div>
                                <div id="kanyan_img"></div>





                            </div>
                            <!-- /.box-body -->
                            <div class="box-footer text-center">

                                <button type="submit" class="btn btn-info">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <button type="reset" class="btn btn-default ">取消</button>

                            </div>
                            <!-- /.box-footer -->
                        </form>
                    </div>
                    <div class="col-md-4">

                    </div>
                </div>
                <!-- /.row -->
            </div>
            <!-- /.box-body -->
            <div class="box-footer">

            </div>
    </div>

    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->

<!-- 底部 -->
{include file="common/footer"}
<!-- /底部 -->


</div>
<!-- ./wrapper -->


<!-- jQuery UI 1.11.4 -__ADMIN__/->
<script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->

<!-- Bootstrap 3.3.7 -->
<script src="__ADMIN__/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="__ADMIN__/bower_components/raphael/raphael.min.js"></script>
<script src="__ADMIN__/bower_components/morris.js/morris.min.js"></script>
<!-- Sparkline -->
<script src="__ADMIN__/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="__ADMIN__/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="__ADMIN__/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="__ADMIN__/bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="__ADMIN__/bower_components/moment/min/moment.min.js"></script>
<script src="__ADMIN__/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="__ADMIN__/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="__ADMIN__/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="__ADMIN__/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="__ADMIN__/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="__ADMIN__/dist/js/adminlte.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->

<!-- AdminLTE for demo purposes -->
<script src="__ADMIN__/dist/js/demo.js"></script>
</body>
</html>
